﻿using UnityEngine;
using System.Collections;

public class Tela_2 : MonoBehaviour {
	
	public Texture2D bg;
	
	// Use this for initialization
	void Start () 
	{
		StartCoroutine(WaitAndPrint(400.0F));
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI ()
	{
		GUI.DrawTexture(new Rect(Screen.width / 2 - 346 / 2, Screen.height / 2 - 338 / 2, 346, 338), bg);
	}
    

    IEnumerator WaitAndPrint(float waitTime)
    {
		Application.LoadLevel("Tela_1");
        yield return new WaitForSeconds(waitTime);
        
    }
}